<?php
namespace app\common\model;
use think\Model;
use think\model\concern\SoftDelete;

class Supplier extends Model
{
    use SoftDelete;
    protected $deleteTime = 'delete_time';
    protected $defaultSoftDelete = 0;
    protected $autoWriteTimestamp = true;
    
    protected function bank()
    {
        return self::belongsTo(Banks::class, 'bank_id')->bind(['bank_name'=>'name','bank_img'=>'img']);
    }

    
}